<template>
  <div id="app">
      <router-view />
    <div id="nav">
      <!-- <router-link to="/">首页</router-link> 
      <router-link to="/book">文章</router-link> 
      <router-link to="/shopcar">购物车</router-link> 
      <router-link to="/my">我的</router-link> -->
    </div>
  </div>
</template>

<style lang="scss">
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  color: #2c3e50;
}

#nav {
  position: fixed;
  width: 100%;
  left: 0;
  bottom: 0;
  display: flex;
  background-color: aliceblue;

  a {
    flex: 1;
    height: 50px;
    line-height: 50px;
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: white;
      background-color: #0080e2;
    }
  }
}
</style>
